home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / program / n_b_v203.zip / DOS-VER.DMO < prev    next >
Text File  |  1996-07-04  |  2KB  |  39 lines

  1. $if 0
  2.     ┌──────────────────────────╖                        PowerBASIC v3.20
  3.  ┌──┤          DASoft          ╟──────────────────────┬──────────────────╖
  4.  │  ├──────────────────────────╢    Copyright 1995    │ DATE: 1995-10-01 ╟─╖
  5.  │  │ FILE NAME   DOS-VER .DMO ║          by          ╘════════════════─ ║ ║
  6.  │  │                          ║  Don Schullian, Jr.                     ║ ║
  7.  │  ╘══════════════════════════╝                                         ║ ║
  8.  │ A license is hereby granted to the holder to use this source code in  ║ ║
  9.  │ any program, commercial or otherwise,  without receiving the express  ║ ║
  10.  │ permission of the copyright holder and without paying any royalties,  ║ ║
  11.  │ as long as this code is not distributed in any compilable format.     ║ ║
  12.  │  IE: source code files, PowerBASIC Unit files, and printed listings   ║ ║
  13.  ╘═╤═════════════════════════════════════════════════════════════════════╝ ║
  14.    │                ....................................                   ║
  15.    ╘═══════════════════════════════════════════════════════════════════════╝
  16. $endif
  17.  
  18. '.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°
  19. ' ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° °
  20.  
  21. $INCLUDE "DAS-NB02.INC"
  22. COLOR 7, 0
  23. CLS
  24.  
  25. ? "┌────────────────────────────────────────────────────────────────
  26. ? "│ fDOSversion%
  27. ? "├───────────────────────────────────────────────────────────────────
  28. ? "│ DOS comes in many, many different suits and sometimes you HAVE to
  29. ? "│ know which one you are working with. fDOSversion% returns the currently
  30. ? "│ running version of DOS as a whole number. ie:  5.0 = 500  6.2 = 620
  31. ? "│ PRESS <F-9> now to see which version you are running.
  32. ? "└────────────────────────────────────────────────────────────────────────
  33. ?
  34.  
  35. V% = fDOSversion%
  36. PRINT USING "fDOSversion% returns a whole number: ###"; V%
  37. PRINT
  38. PRINT USING "You are running DOS version #.##"; ( V% / 100 )
  39.